Xbasic
FLOOR Function
Syntax
Integer_Result as N = FLOOR(N number)
Arguments
- number
Numeric
Description
Returns the largest integer that is less than or equal to a number.
Discussion
FLOOR() returns the largest integer that is either less than or equal to the specified Number.
Example
floor(12.3) -> 12 floor(-2.1) -> -3
See Also